package com.youlai.boot.modules.product.model;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Schema(description = "商品表单对象")
@Data
public class ProductForm {
    private Long id;

    @NotBlank(message = "商品名称不能为空")
    private String name;

    private String coverPic;
    private String description;
    private String priceDesc;
    private String tags;
    private Integer sort;
    private Integer status;

    @NotNull(message = "商户ID不能为空")
    private Long merchantId;

    private Long brandId;

    private List<String> countryCodes;
}